<template>
    <div>
        <van-nav-bar title="购物车" left-arrow>
            <template #left>
                <router-link to="/home/index">
                    <van-icon color="#000" name="wap-home-o" size="18" @click="replaceDoc"/>
                </router-link>
            </template>
        </van-nav-bar>
        <div style="text-align: center;">
            <van-empty
                image="https://fastly.jsdelivr.net/npm/@vant/assets/custom-empty-image.png"
                image-size="100"
                description="购物车还是空的"
                style="margin-top: 46px;"
                />
            <van-button color="#7232dd" plain to="/home/index">去逛逛</van-button>
        </div>
    </div>
</template>

<script setup lang="ts">
import BASEURL from '../http/IndexUrl'
    const {INDEXURL} = BASEURL
    const replaceDoc=()=>{
        window.location.replace(INDEXURL)
    }
</script>

<style scoped>

.van-nav-bar{
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10000;
}

</style>